define(['./module'], function (filters) {
  'use strict';
  filters.filter('qtyAll', function () {
    return function(pivots) {
      var key, key1, qty_all, value, value1;
      qty_all = 0;
      for (key in pivots) {
        value = pivots[key];
        for (key1 in value) {
          value1 = value[key1];
          qty_all += parseInt(value1);
        }
      }
      return qty_all;
    };
  });
});

